function collect_same_elements(collection_a, object_b) {
  //在这里写入代码
  var array=[]
  for(let i of collection_a){
    array.push(i.key)
  }
  return array.filter(x=>object_b.value.includes(x));
}

module.exports = collect_same_elements;
